import request from '@/utils/request';
import { stringify } from 'qs';
import { toFormData } from '@/utils/utils.jsx';
import func from '@/utils/func';

//查询当前用户的配置接口:

export default {
	//请求仓库列表
	queryStorageList(params) {
		return request(`/zjf-wms/kx/warehouse/list?${stringify(params)}`);
	},

	//更新仓库状态
	updateStorageState(params) {
		return request(`/zjf-wms/kx/warehouse/stateUpdate?${stringify(params)}`, {
			method: 'post',
		})
	},

	//添加仓库
	addStorage(params) {
		return request(`/zjf-wms/kx/warehouse/add`, {
			method: 'post',
			data: params
		})
	},

	//更新仓库名称
	updateStorageName(params) {
		return request(`/zjf-wms/kx/warehouse/update`, {
			method: 'post',
			data: params
		})
	},
}





